<?php require_once('../../core/import.php');?>
<?php User::Permission('ACCOUNT_LIST_RECYCLE_DELETE'); ?>
<?php
    if(!is_numeric($ID=Functions::UrlArgs('id')))
    {
        exit('信息ID不正确');
    }
    else
    {
        if($Data=DB::GetRowByID('account',$ID))
        {
		if($Data['Logo'])
            {
                @unlink(Config::PATH_UPLOAD_ATTACHMENT_NEWS.'/'.$Data['Logo']);
            }
        DB::CExec('delete from account where Username=\''.$Data['Username'].'\'');
		DB::CExec('delete from account_delete where Account=\''.$Data['Username'].'\'');
		DB::CExec('delete from management_user_register where Account=\''.$Data['Username'].'\'');
        }

        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }

?>